import request from '../utils/request.js'

// 发布游记
// body category 分类  picture 图片 postContent 帖子内容 userId 用户id
export const sendtravel = (params) => {
  return request.post('/app/post/addPost', params)
}

// 删除游记
// query postId 游记id
export const deletetravel = (params) => {
  return request.del(`/app/post/deletePost?postId=${params}`)
}

// 搜索游记
// query  content 搜索关键字 pageNum 页码数   pageSize 页码数据大小
export const searchtravel = (params) => {
  return request.get('/app/post/searchPost',  params )
}
